package com.javaee.rmi.demo;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

/** 远程对象实现类,使用前 需要使用rmic命令生成_stub类放入客户端*/
public class RemoteStudentImpl extends UnicastRemoteObject implements RemoteStudent {
	
	private static final long serialVersionUID = 1L;

	protected RemoteStudentImpl() throws RemoteException {
		super();
	}

	@Override
	public String getNameById(int id) throws RemoteException {
		return "hello";
	}

}
